package org.kkk.sandbox;

import cn.hutool.core.io.FileUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.File;

import static org.kkk.sandbox.sandbox.impl.JavaNativeCodeSandbox.FILE_STORAGE_DIR;

@SpringBootApplication
public class SandboxApplication {

    public static void main(String[] args) {
        //创建项目时先创建根项目
        String rootPath=System.getProperty("user.dir");
        String rootDir= rootPath+ File.separator+FILE_STORAGE_DIR;
        if(!FileUtil.exist(rootDir))
        {
            FileUtil.mkdir(rootDir);
        }
        SpringApplication.run(SandboxApplication.class, args);

    }

}
